<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>main—workbench</title>
		<!-- css代码 start -->
		<link href="../../css/mui.min.css" rel="stylesheet" />
		<link href="../../css/style.css" rel="stylesheet" />
		<link href="../../css/global.css" rel="stylesheet" />
		<link href="../../css/task.css" rel="stylesheet" />
		<style>
			#div {
				width: 0px;
				height: 0px;
				background: red;
				position: fixed;
				top: 65%;
				left: 50%;
			}
			/*移除底部或顶部三角,需要在删除此代码*/
			.mui-popover .mui-popover-arrow:after {
				width: 0px;
			}
			.send_logo{
				height: 120px;
				overflow: hidden;
				border-radius: 0 0 15px 15px !important;
			}
			.job_box{
				/*box-shadow:0 0 0 rgba(0,0,0,0);*/
				margin: 15px 15px;
				background: #fcfdfe;
			}
			.job_box .bar{
				border: 0;
				padding: 0 15px;
				display: flex;
				align-items: center;
			}
			.job_box .bar:before{
				content: '';
				width: 5px;
				height: 10px;
				margin-right: 5px;
				display: inline-block;
				background-color: #ea1e1a;
			}
			.lck_bor_gz{
				/*width: 120px;*/
			    border-bottom: 2px solid #eee;
			}
			.lck_bor_bj{
				/*width: 70px;*/
				border-bottom: 2px solid #eee;
			}
			.lck_bor_zx{
				/*width: 88px;*/
				border-bottom: 2px solid #eee;
			}
			.lck_bor_qt{
				/*width: 55px;*/
				border-bottom: 2px solid #eee;
			}
			.lck_nav{
				margin: 10px 8px;
			}
			.lck_nav .lck_fa{
				width: 74px;
				margin: 4px;
				display: flex;
				flex-wrap: wrap;
				align-items: center;
				justify-content: center;
				line-height: 14px;
				border: none;
			}
			.lck_fa img{
				padding: 0 15px;
				width: auto;
				height: 35px;
			}
		</style>
		<!-- css代码 end -->
	</head>
	<body>
		<div id="div"></div>
		<div id="popover" class="mui-popover shadow popover">
			<p class="title" id="title">请确认是否进入离线模式?当网络正常并且离线数据上传后才能退出离线模式。</p>
			<div class="btn_box">			
				<span class="fl" onclick="closepop()">取消</span>
				<span class="fr red" onclick="jumpToOffline()">确定</span>
			</div> 
		</div>
		<!-- html代码 start -->
		<div class="send_logo">
			<img src="../../images/send_logo.png" width="100%">
		</div>
		<div class="mui-content">
			<div class="job_box autoHeight" style="margin-top: 20px;">
				<p class="bar">工作任务管理</p>
				<div class="lck_bor_gz"></div>
				<div class="lck_nav">
					<div class="lck_fa" onclick="jumpToServiceNotice()"><img src="../../images/icon_330.png" />服务通知</div>
					<div class="lck_fa" onclick="jumpToServiceReport()"><img src="../../images/icon_331.png" />工作报告</div>
					<div class="lck_fa" onclick="jumpToServiceLog()"><img src="../../images/icon_332.png" />工作日志</div>
					<div class="lck_fa" onclick="jumpToWorkPlan()"><img src="../../images/icon_333.png" />工作计划</div>
				</div>
			</div>
			<div class="job_box autoHeight">
				<p class="bar">备件库</p>
				<div class="lck_bor_bj"></div>
				<div class="lck_nav">
					<div class="lck_fa" onclick="jumpToParts()"><img src="../../images/icon_334.png" />备件管理</div>
					<div class="lck_fa" onclick="jumpToTools()"><img src="../../images/icon_335.png" />工具管理</div>
				</div>
			</div>
			<div class="job_box autoHeight">
				<p class="bar">在线服务</p>
				<div class="lck_bor_zx"></div>
				<div class="lck_nav">
					<div class="lck_fa" onclick="jumpToCreateOrder()"><img src="../../images/icon_336.png" />建单申请</div>
					<div class="lck_fa" onclick="jumpToCallRecord()" style="line-height: 15px;"><img src="../../images/icon_337.png" />电话<br/>解决记录</div>
					<div class="lck_fa" onclick="jumpToBindQrCode()" style="line-height: 15px;"><img src="../../images/icon_338.png" />仪器二维码<br/>绑定</div>
				</div>
			</div>
			<div class="job_box autoHeight">
				<p class="bar">其他</p>
				<div class="lck_bor_qt"></div>
				<div class="lck_nav">
					<div class="lck_fa" id="gcsgl" style="display: none;" onclick="jumpToFseManage()"><img src="../../images/icon_339.png" />工程师管理</div>
					<div class="lck_fa" onclick="jumpToUpdateCase()" style="line-height: 15px;"><img src="../../images/icon_340.png" />升级Case<br/>管理</div>
					<!-- 发布生产 离线功能 入口 暂不开放 2020-06-19 -->
					<div class="lck_fa" onclick="isOffline()"><img src="../../images/icon_341.png" />离线模式</div>
				</div>
			</div>
		</div>
		<!-- html代码 end -->

		<!-- js代码 start -->

		<!-- 基础js start -->
		<script src="../../js/mui.min.js"></script>
		<script src="../../js/utils/h.js"></script>
		<script src="../../js/constant.js"></script>
		<script src="../../js/common.js"></script>
		<script src="../../js/utils/base64.js"></script>
		<script src="../../js/utils/md5.js"></script>
		<script src="../../js/utils/sortMap.js"></script>
		<script src="../../js/utils/http.js"></script>
		<script src="../../js/app.js"></script>
		<!-- 基础js end -->

		<script type="text/javascript" charset="utf-8">
			(function($, doc) {
				$.init();

				$.plusReady(function() {
					
					// $('.btn_box').on('tap', '.btn', function() {
					// 	var tag = this.getAttribute("tag");
					// 	app.toast(tag)
					// })
					if("Team Leader" == app.getUser().position){
						h("#gcsgl").show()
					}
					
				});

			}(mui, document));
			
			// 工作日志
			function jumpToServiceLog(){
				app.jumpTo("/view/service/serviceLog/logManageMenu.html", "view/service/serviceLog/logManageMenu");
			}
			
			// 工作计划
			function jumpToWorkPlan(){
				app.jumpTo("/view/workArea/plan/workPlan.html", "view/workArea/plan/workPlan");
			}
			
			// 建单申请
			function jumpToCreateOrder(){
				app.jumpTo("/view/workArea/onlineService/createOrder.html", "view/workArea/onlineService/createOrder");
			}
			
			// 电话解决记录
			function jumpToCallRecord(){
				app.jumpTo("/view/workArea/onlineService/callRecord.html", "view/workArea/onlineService/callRecord");
			}
			
			// 升级case管理
			function jumpToUpdateCase(){
				app.jumpTo("/view/workArea/others/updateCase.html", "view/workArea/others/updateCase");
			}
			
			// 工程师管理（TL）
			function jumpToFseManage(){
				app.jumpTo("/view/workArea/others/fseManage.html", "view/workArea/others/fseManage");
			}
			
			// 服务通知
			function jumpToServiceNotice(){
				app.jumpTo('/view/service/notice/noticeMenu.html','view/service/notice/noticeMenu.html');
			}
			// 工作报告
			function jumpToServiceReport(){
				app.jumpTo("/view/service/report/work/workReportMenu.html", "view/service/report/work/workReportMenu.html");
			}
			
			// 备件管理
			function jumpToParts(){
				app.jumpTo("/view/workArea/parts/partsMenu.html", "view/workArea/parts/partsMenu.html");
			}
			
			// 工具管理
			function jumpToTools(){
				app.jumpTo("/view/workArea/tools/toolsMenu.html", "view/workArea/tools/toolsMenu.html");
			}
			
			// 仪器二维码绑定
			function jumpToBindQrCode(){
				app.jumpTo("/view/service/checkInstrument/bindQrCode.html", "view/service/checkInstrument/bindQrCode.html");
			}
			
			// 离线功能			
			function isOffline() {
				mui("#popover").popover('toggle', document.getElementById("div"));
			}
			function jumpToOffline() {
				mui("#popover").popover('toggle', document.getElementById("div"));
				app.jumpTo("/view/offline/list.html", "view/offline/list.html");
			}
			
			// 取消方法 关闭弹窗
			function closepop(){
				mui("#popover").popover('hide', document.getElementById("div"));
			}
		</script>
		<!-- js代码 end -->
	</body>
</html>
